package com.xxzuibang.day2;


public class Demo7 {
    public static void main(String[] args) {
        printNum();
    }

    private static void  printNum() {
        float f1=12345.01f;
        float f2=12345.00f;
        float var1 = f1 >= f2 ? 12456f : 12456.02f;
        float var2 = var1 + 1024;
        System.out.println("var1的值为："+var1+" "+"var2的值为："+var2);



    }
}
